package com.itheima.clientAndService01;

public class MainClass03 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        try {
            method(arr);
        } catch (Exception e) {
            System.out.println(e.getMessage());
            System.out.println(e.toString());
            e.printStackTrace();
        }
    }

    private static void method(int[] arr) {
        System.out.println(arr[10]);
    }
}
